package Structural.Composite;

import java.util.ArrayList;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author alumno
 */
public class Composite implements ISueldo{
    private ArrayList<ISueldo> empleados = new ArrayList<ISueldo>();
    
    public double getSueldo(){
        double sumador = 0;
        for (int i = 0; i < empleados.size(); i++){
            
            
        }
        return sumador;
    }
    
    public void agrega(ISueldo p){
        empleados.add(p);
    }
    
}
